import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
import { EnumQuestionPostAnswer, QuestionDeleteTag } from './questions.enum';

@Entity()
export class Questions {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ name: 'video_id' })
  video_id: number;

  @Column({ name: 'wx_user' })
  wx_user: string;

  @Column({ name: 'create_time' })
  create_time: Date;

  @Column({ name: 'answer_time' })
  answer_time: Date;

  @Column({ name: 'post_answer' })
  post_answer: EnumQuestionPostAnswer | null;

  @Column({ name: 'delete_tag' })
  delete_tag: QuestionDeleteTag;

  @Column({ name: 'rela_questions_wx_user' })
  rela_questions_wx_user: string;

  @Column({ name: 'group_uid' })
  group_uid: number;
}
